package com.lantosec.hmrp.modules.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.modules.system.entity.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统权限表 Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-02-15
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    void changeState(@Param("permissionId") String permissionId, @Param("state") String state);

    String queryMaxIdByParentId(String parentId);

    String queryMaxId();

    List<SysPermission> getPermissionById(String permissionId);
}
